<template>
  <div class="member-info">
    <el-form label-width="90px"
      ref="form">
      <el-row>
        <el-col :span="6">
          <div class="input-wrap"
            style="margin-top:10px">
            <el-form-item label="账号：">
              <span>{{form.account}}</span>
            </el-form-item>
          </div>
          <div class="input-wrap">
            <el-form-item label="所属酒店：">
              <span>{{form.hotelName}}</span>
            </el-form-item>
          </div>
          <div class="input-wrap">
            <el-form-item label="手机号码：">
              <span>{{form.phone}}</span>
            </el-form-item>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="input-wrap"
            style="margin-top:10px">
            <el-form-item label="姓名：">
              <span>{{form.name}}</span>
            </el-form-item>
          </div>
          <div class="input-wrap">
            <el-form-item label="所属部门：">
              <span>{{form.department}}</span>
            </el-form-item>
          </div>
          <div class="input-wrap">
            <el-form-item label="性别：">

              <span>{{form.sex}}</span>
            </el-form-item>
          </div>
        </el-col>
      </el-row>
    </el-form>
    <div class="information-btn">
      <el-form-item>
        <el-button @click="back">返回</el-button>
      </el-form-item>
    </div>
  </div>
</template>
<script>
import { getSupInfo } from "@/public/js/member";

export default {
  token: "",
  data() {
    return {
      form: {},
      id: ""
    };
  },
  created() {
    this.id = this.$route.query.id;

    this.getMemberInfo();
  },
  methods: {
    getMemberInfo() {
      getSupInfo({ id: this.id }).then(res => {
        this.form = res.data.supInfo;
        console.log(this.form);
      });
    },
    back() {
      this.$router.back();
    }
  }
};
</script>
<style lang="scss">
.el-form-item__label {
  font-weight: bold;
}
</style>
